import { Application } from 'express';
import usersRouter from './api/controllers/users/router';
import commonRouter from './api/controllers/common/router';
import operationalRouter from './api/controllers/operational/router';
import goodsRouter from './api/controllers/goods/router';
import shopRouter from './api/controllers/shop/router';
import orderRouter from './api/controllers/order/router';
import evaluationRouter from './api/controllers/evaluation/router';
import statisticalRouter from './api/controllers/statistical/router';
export default function routes(app: Application): void {
  app.use('/api/v1/users', usersRouter);//用户登录注册接口
  app.use('/api/v1/common', commonRouter);//文件上传接口
  app.use('/api/v1/operational', operationalRouter);//运营位接口
  app.use('/api/v1/goods', goodsRouter);//商品接口
  app.use('/api/v1/shop', shopRouter);//购物车接口
  app.use('/api/v1/order', orderRouter);//订单管理接口
  app.use('/api/v1/evaluation', evaluationRouter);//评论接口
  app.use('/api/v1/statistical', statisticalRouter);//数据管理接口
}
 